package cn.xiangxu.com.service;

import cn.xiangxu.com.annotations.NeedTest;
import org.springframework.stereotype.Service;

/**
 * @author 王杨帅
 * @create 2018-05-04 10:28
 * @desc 自定义注解测试类
 **/
@Service
public class AnnotationTestService {
    @NeedTest
    public void deleteUser(Integer userId) {
        System.out.println("根据用户ID删除用户所有信息：" + userId);
    }

    @NeedTest(value = false)
    public void deleteUserAddress(String address) {
        System.out.println("删除用户地址信息：" + address);
    }
}

